extends Node2D

onready var PLATFORM1 = $"../PLATFORM1"
onready var PLATFORM2 = $"../PLATFORM2"
onready var vp = get_viewport()

func nya(control_node):
	position = control_node.rect_position
	if position.y<=PLATFORM1.rect_size.y:
		$NYA.play()
	if position.y>=vp.size.y/2:
		print("nyo!")
		$NYO.play()
